<?php

declare (strict_types=1);

namespace app\store\model\agent;

use think\model\relation\HasOne;
use app\common\model\agent\Promoter as PromoterModel;
use app\store\model\User;

/**
 * 推广员管理模型类
 * Class User
 * @package app\common\model
 */
class Promoter extends PromoterModel
{

    /**用户
     * @return HasOne
     */
    public function user():HasOne
    {
        return $this->hasOne(User::class,'user_id','user_id');
    }

    /**渠道
     * @return HasOne
     */
   public function channel():HasOne
   {
       return $this->hasOne(Channel::class,'id','channel_id');
   }



}
